package com.qunar.qcf.socket;

import java.net.InetSocketAddress;

import com.qunar.qcf.core.service.IoConnector;


/**
 * {@link IoConnector} for socket transport (TCP/IP).
 *
 */
public interface SocketConnector extends IoConnector {
    
    /**
     * {@inheritDoc}
     */
    InetSocketAddress getDefaultRemoteAddress();
    
    /**
     * TODO : add documentation
     * @param remoteAddress
     */
    void setDefaultRemoteAddress(InetSocketAddress remoteAddress);
    
    /**
     * Returns the default configuration of the new SocketSessions created by 
     * this connect service.
     */
    SocketSessionConfig getSessionConfig();
}